﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace DevWeb.Biztalk.DeploymentSettings.WebUI.Models
{
    public abstract class BaseSetting : BaseViewModel
    {
        protected BaseSetting()
        {
            CreatedDateTime = DateTime.Now;
        }

        

        [DisplayName("Parameter Name")]
        [Required(ErrorMessage = "Parameter Name is required")]
        [StringLength(150, ErrorMessage = "Between 4 and 150 Chars is allowed", ErrorMessageResourceName = null,
            ErrorMessageResourceType = null, MinimumLength = 0)]
        public string ParameterName { get; set; }
       
       

        [ReadOnly(true)]
        public DateTime CreatedDateTime { get; set; }
    }
}